﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BasicLoggerModule.Model
{
    [SugarTable("LoggerModel")]//当和数据库名称不一样可以设置表别名 指定表明
    public class LoggerModel
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]//数据库是自增才配自增 
        public int Id { get; set; }

        [SugarColumn(ColumnDataType = "Nvarchar(1000)",IsNullable = true)]
        public string LoggetLever { get; set; }

        [SugarColumn(ColumnDataType = "Nvarchar(1000)", IsNullable = true)]
        public string Message { get; set; }

        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string DateTime { get; set; }
    }
}
